<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="../common/includes.jsp"%>
<%@ include file="../common/taglibs.jsp"%>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="下一站旅行 酒店 机票  xiayizhan 下一站">
<meta http-equiv="description" content="下一站旅行 酒店 机票  xiayizhan 下一站">
<title>主页 - 酒店预订 机票www.ixiayizhan.com</title>
<style type="text/css">
#dbmng input[type='button']{
padding:5px 8px;
margin:12px;
background-color: #12a3f6;
color:white;
cursor:pointer;
border:none;
}
#dbmng input[type='button']:hover{
background-color: #FF882A;
}
#dbmng input[type='button'].disabled{
cursor:not-allowed;
background-color: #D8D8D8;
}
#8DBB00
</style>
<script type="text/javascript">

function insertCtripCity(){
	var url = "${ctx}/admin/addCtripCity";
	$.ajax({
		dataType:"json",
		type:"post",
		data:{},
		url:url,
		success:function(data){
			if(data != null){
				alert("插入成功"+data.succCnt+"条，失败"+data.failCnt+"条,一共有"+data.tot+"条数据");
			}
		},
		error: function(){
			alert("操作异常");
		}
		});
}
function insertZhunaCity(){
	var url = "${ctx}/admin/addZhunaCity";
	$.ajax({
		dataType:"json",
		type:"post",
		data:{},
		url:url,
		success:function(data){
			if(data != null){
				alert("插入成功"+data.succCnt+"条，失败"+data.failCnt+"条,一共有"+data.tot+"条数据");
			}
		},
		error: function(){
			alert("操作异常");
		}
		});
}
</script>
</head>
<body>
	<%@include file="../frame/header.jsp"%>
	<div class="w980">
		<div style="padding: 5px">
			<a href="http://www.ixiayizhan.com" title="首页">首页</a> > <a href="/" title="后台管理">后台管理</a> >
		</div>
		<div style="border:1px solid #ccc">
		<div style="padding:8px 0;font-size:16px;background: #ddd" >数据库管理</div>
		<div id="dbmng">
			<input type="button" value="住哪城市导入" onclick="insertZhunaCity()"/>
			<input type="button" value="住哪城市更新" onclick="updateZhunaCity()"/>
			<input type="button" value="携程城市导入" onclick="insertCtripCity()"/>
			<input type="button" value="艺龙城市导入" onclick="insertElongCity()"/>
			<input type="button" value="同程城市导入" onclick="insertElongCity()"/>
			<div style="height:1px;background-color: #ccc;margin:10px 0;"></div>
			<input type="button" value="住哪酒店导入" onclick="insertZhunaHotel()"/>
			<input type="button" value="住哪酒店更新" onclick="updateZhunaHotel()"/>
			<input type="button" value="携程酒店导入" onclick="insertCtripHotel()"/>
			<input type="button" value="携程酒店更新" onclick="updateCtripHotel()"/>
			<input type="button" value="艺龙酒店导入" onclick="insertElongHotel()"/>
			<input type="button" value="艺龙酒店更新" onclick="updateElongHotel()"/>
			<input type="button" value="同程酒店导入" onclick="insert17uHotel()"/>
			<input type="button" value="同程酒店更新" onclick="update17uHotel()"/>
			<div style="height:1px;background-color: #ccc;margin:10px 0;"></div>
			<input type="button" value="携程机场信息导入" onclick="insertCtripPlane()"/>
			<input type="button" value="携程机型导入" onclick="insertCtripPlaneType()"/>
		</div>
		</div>
	</div>
	<%@include file="../frame/foot.jsp"%>
</body>
</html>